module.exports = {
    lintOnSave: false,
    devServer: {
        host : 'localhost',       
        port : 8080, 
        proxy: {
            '/moc': {
                target: 'https://www.fastmock.site/mock/d35ca6773f5b263edfb42e2391d669fc/Management',//moc接口地址
                changeOrigin: true,//是否允许跨越
                pathRewrite: {
                    '^/moc': ''//重写,
                }
            },
            '/api': {
                target: 'http://localhost:8888/management_java_war_exploded/',//后端接口地址
                changeOrigin: true,//是否允许跨越
                pathRewrite: {
                    '^/api': ''//重写,
                }
            },
            
        }
    }
}